package com.system.fkjslee.hos;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ChooseOutpatient extends AppCompatActivity implements View.OnClickListener{

    private Button btnNormalAppoint;
    private Button btnExpertAppoint;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_outpatient);
        initView();
    }

    private void initView() {
        btnNormalAppoint = findViewById(R.id.btnNormalAppoint);
        btnExpertAppoint = findViewById(R.id.btnExpertAppoint);

        btnNormalAppoint.setOnClickListener(this);
        btnExpertAppoint.setOnClickListener(this);
    }

    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btnNormalAppoint:
                startActivity(new Intent(this, NormalAppoint.class));
                break;
            case R.id.btnExpertAppoint:
                startActivity(new Intent(this, NormalAppoint.class));
                break;
        }
    }
}
